public class Plus {
    public static int Sum() {
        int sum = 0;
        for (int i = 1; i <= 100; i += 2) {
            sum += i;
        }
        return sum;
    }
}

public class homework_18 {
    public static void main(String[] args) {
        int result = Plus.Sum();
        System.out.println("2+4+6+...+100=" + result);
    }

}
